<%@page isELIgnored="false" import="java.net.*" %>
<%@taglib prefix="tiles" uri="struts-tiles" %>
<%@taglib prefix="html" uri="struts-html" %>
<%@taglib prefix="bean" uri="struts-bean" %>
<%@taglib prefix="c" uri="jstl" %>
<%@taglib prefix="mcfn" uri="mcfn" %>
<%@taglib prefix="fn" uri="jstl-fn" %>
					<div id="bodyContent">
						<h1>Detalle de Campa&ntilde;a</h1>
						<html:form action="/CampanasPorAutorizarRegistrar" enctype="multipart/form-data" method="post" styleId="FormaAlta">
						<html:hidden property="operation" styleId="operation"/>
						<html:hidden property="cveCampania" />
						<html:hidden property="page" value="3" />
						<div class="errors"><html:errors/><br/>${UserLogin.messageError}</div>
						<table class="tabForms" >
<c:if test="${CampanasPorAutorizarForm.campania.bandera eq 3}"></c:if>
<!-- 
							<tr>
								<td style='text-align:left;'>
									<b>Estado: &nbsp; &nbsp;<c:choose><c:when test="${CampanasPorAutorizarForm.campania.bandera eq 3}">Por Autorizar</c:when><c:when test="${CampanasPorAutorizarForm.campania.bandera eq 2}">Rechazada</c:when><c:when test="${CampanasPorAutorizarForm.campania.bandera eq 1}">Autorizada</c:when><c:when test="${CampanasPorAutorizarForm.campania.bandera eq 4}">Cancelada</c:when><c:otherwise>Desconocido</c:otherwise></c:choose></b>
									<br/>
								</td>
								<td colspan="5" style='text-align:right;'>
									<c:if test="${CampanasPorAutorizarForm.campania.bandera eq 3}">[<div style="display:inline" onclick="document.getElementById('operation').value='1';document.getElementById('FormaAlta').submit( );" onmouseover="this.style.cursor='pointer';this.style.textDecoration='underline';" onmouseout="this.style.cursor='default';this.style.textDecoration='none';">Autorizar</div>][<div style="display:inline" onclick="document.getElementById('operation').value='2';document.getElementById('FormaAlta').submit( );" onmouseover="this.style.cursor='pointer';this.style.textDecoration='underline';" onmouseout="this.style.cursor='default';this.style.textDecoration='none';">Rechazar</div>]</c:if>
									<br/>
								</td>
							</tr>
 -->
 							<tr>
								<td><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.Nombre"/></b></td>

								<td colspan="5">${mcfn:getShortString( CampanasPorAutorizarForm.campania.nombre, 50)}</td>
							</tr>
							<tr class="alt">
								<td><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.Tipo"/></b></td>
								<td>
									${mcfn:getShortString(CampanasPorAutorizarForm.campania.tblTipoCampania.nombre,25)}
								</td>
								<td colspan="2"><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.Multiple"/> &nbsp; &nbsp;<c:if test="${CampanasPorAutorizarForm.campania.multiplePartner eq 1}">SI</c:if><c:if test="${CampanasPorAutorizarForm.campania.multiplePartner ne 1}">NO</c:if></b> </td>
								<td><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.Producto"/></b></td>
								<td>
									<c:if test="${CampanasPorAutorizarForm.campania.tblProducto eq NULL}">TODOS</c:if><c:if test="${CampanasPorAutorizarForm.campania.tblProducto ne NULL}">${mcfn:getShortString(CampanasPorAutorizarForm.campania.tblProducto.nombre,25)}</c:if>
								</td>
							</tr>
							<tr>
								<td><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.FechaInicio"/></b></td>
								<td>
									${mcfn:formatTimestamp(CampanasPorAutorizarForm.campania.fechaIni,'yyyy/MM/dd') }
								</td>
								<td><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.FechaFinal"/></b></td>
								<td>
									${mcfn:formatTimestamp(CampanasPorAutorizarForm.campania.fechaFin,'yyyy/MM/dd') }
								</td>
								<td><b></b></td>
								<td></td>
							</tr>

							<tr class="alt">
								<td><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.Descripcion"/></b></td>
								<td colspan="5">${mcfn:getShortString( CampanasPorAutorizarForm.campania.texto, -1)}</td>
							</tr>
							<tr>
								<td><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.Encargado"/></b></td>
								<td>
									${CampanasPorAutorizarForm.campania.tblUsuario2.login}
								</td>
								<td><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.NombreUsuario"/></b></td>
								<td>${CampanasPorAutorizarForm.campania.tblUsuario2.nombre}</td>
								<td><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.Correo"/></b></td>

								<td>${CampanasPorAutorizarForm.campania.tblUsuario2.email}</td>
							</tr>
 							<tr>
								<td><b><bean:message key="com.mastercard.assets.web.errors.modules.generarcampana.labels.BC"/></b></td>

								<td colspan="5"><html:file property="bc" >Subir Business Case</html:file></td>
							</tr>
						</table>
						<span class="contentBtn"><html:image src="images/btnCancelar.gif" onclick="document.getElementById('operation').value='2';return true ;" /> &nbsp; <html:image src="images/btnAceptar.gif" onclick="document.getElementById('operation').value='1';return true ;" /></span>
						</html:form>
					</div>
					<div id="footContent"></div>
